Meaning of the word "a man is known by the company he keeps" in English

What does "a man is known by the company he keeps" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

a man is known by the company he keeps

US /ə mæn ɪz noʊn baɪ ðə ˈkʌm.pə.ni hi kips/
UK /ə mæn ɪz nəʊn baɪ ðə ˈkʌm.pə.ni hiː kiːps/
"a man is known by the company he keeps" picture

Idiom

a person is judged by the type of people they spend their time with

Example:
You should be careful who you hang out with; a man is known by the company he keeps.
Since he started hanging out with those troublemakers, people think he's one too, because a man is known by the company he keeps.